package com.gather.zx;

import java.util.ArrayList;
import java.util.Collection;

public class CollectionNumber {
	public static void main(String[] args) {
	Collection<String> a=new ArrayList <String>();
	Collection<String> b=new ArrayList <String>();
	Collection<String> c=new ArrayList <String>();
	Collection<String> d=new ArrayList <String>();
	
	a.add("1 2 5 7 17 20");
	b.add("1 4 5 13 15 17 19");
	c.addAll(a);
	c.addAll(b);
	System.out.println(c);
	b.retainAll(a);
	System.out.println(a);
	d.addAll(a);
	System.out.println(d);
	}

}
